home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / clang / cxl52_1.zip / CXLMOU.H < prev    next >
C/C++ Source or Header  |  1990-02-17  |  2KB  |  58 lines

  1. /*
  2.    ┌──────────────────────────────────────────────────────────────────────────┐
  3.    │                                                                          │
  4.    │  CXLMOU.H  -  CXL is Copyright (c) 1987-1990 by Mike Smedley.            │
  5.    │                                                                          │
  6.    │  This header file contains function prototypes and definitions for       │
  7.    │  Microsoft compatible mouse functions.                                   │
  8.    │                                                                          │
  9.    └──────────────────────────────────────────────────────────────────────────┘
  10. */
  11.  
  12. #if defined(__TURBOC__)                         /* Turbo C */
  13.     #if __STDC__
  14.         #define _Cdecl
  15.     #else
  16.         #define _Cdecl  cdecl
  17.     #endif
  18.     #define _Near
  19. #elif defined(__ZTC__)                          /* Zortech C++ */
  20.     #define _Cdecl
  21.     #define _Near
  22. #elif defined(M_I86) && !defined(__ZTC__)       /* Microsoft C/QuickC */
  23.     #if !defined(NO_EXT_KEYS)
  24.         #define _Cdecl  cdecl
  25.         #define _Near   near
  26.     #else
  27.         #define _Cdecl
  28.         #define _Near
  29.     #endif
  30. #endif
  31.  
  32. /*---------------------------[ function prototypes ]-------------------------*/
  33.  
  34. void    _Cdecl msbclear(void);
  35. void    _Cdecl msbpress(int button,int *bstat,int *bcount,int *row,int *col);
  36. void    _Cdecl msbreles(int button,int *bstat,int *bcount,int *row,int *col);
  37. void    _Cdecl mscondoff(int srow,int scol,int erow,int ecol);
  38. void    _Cdecl mscursor(unsigned curtype,unsigned smask,unsigned cmask);
  39. void    _Cdecl msgotoxy(int row,int col);
  40. void    _Cdecl mshbounds(int leftcol,int rightcol);
  41. void    _Cdecl mshidecur(void);
  42. int     _Cdecl msinit(void);
  43. void    _Cdecl msmotion(int *rowcount,int *colcount);
  44. void    _Cdecl msshowcur(void);
  45. void    _Cdecl msspeed(int xratio,int yratio);
  46. void    _Cdecl msstatus(int *bstat,int *row,int *col);
  47. void    _Cdecl mssupport(int type);
  48. void    _Cdecl msvbounds(int toprow,int botrow);
  49.  
  50. extern int _Near _Cdecl _mouse;  /* mouse support level */
  51.  
  52. /*----------------------[ mouse support definitions ]------------------------*/
  53.  
  54. #define MS_NONE     0   /* no mouse support                         */
  55. #define MS_KEYS     1   /* mouse movement emulates arrow keys       */
  56. #define MS_CURS     2   /* free-moving mouse cursor where supported */
  57. #define MS_FULL     3   /* full mouse support (MS_KEYS | MS_CURS)   */
  58.